package com.nbgs.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nbgs.demo.controller.info.BillConsumptionInfo;
import com.nbgs.demo.controller.info.ConsumptionInfo;
import com.nbgs.demo.model.Complain;
import com.nbgs.demo.model.PaymentRecords;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public interface UserService {

    List<BillConsumptionInfo> findWaterBillByCardNum(int cardId, String billState1, String billState2);

    IPage<ConsumptionInfo> findWaterMessageByCardId(Page<ConsumptionInfo> page, String time,int cardId);

    IPage<PaymentRecords> findPaymentRecordsByCardId(Page<PaymentRecords> page,int cardId);

    int findCardIdByCardNum(String cardNum);

    void updateByBillId(int billId);

    void addPaymentRecords(PaymentRecords paymentRecords);

    void addComplain(Complain complain);

    List<Complain> findComplainByCardId(int cardId);
}
